dhcpv4: remove some magic numbers
authorDavid Härdeman <[email protected]>
Thu, 25 Sep 2025 09:44:43 +0000 (11:44 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 7 Oct 2025 09:03:40 +0000 (11:03 +0200)
commitefafcbdbb0ab401388903c15974cc9fb454852c1
treefd4bb5f09c7421c8b9af3eccaf082c242f458157
parent11c8ef57da64f19e9d3e1597293f11f704939f15
dhcpv4: remove some magic numbers

Add a bunch of #define's to dhcpv4.h and use the defined constants to reduce
the number of magic constants.

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/266
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv4.c
src/dhcpv4.h